package com.liuyz.demo1;

class BB extends AA {

    static {
        System.out.println("BB 静态代码块"); //3
    }

    public static int b1 = n1();
    public int b2 = n2();

    public BB() {
        super();
        System.out.println("BB 构造器"); //10
    }

    {
        System.out.println("BB 普通代码块"); //8
    }

    public static int n1() {
        System.out.println("BB 静态方法"); //4
        return 100;
    }

    public int n2() {
        System.out.println("BB 普通方法"); //7
        return 200;
    }
}
